const messages = (state: any) => state.messages;

// https://vuex.vuejs.org/zh/guide/getters.html
const openeds = (state: any) => state.list.filter((config: any) => config.connect)

const closeds = (state: any) => state.list.filter((config: any) => {
  return config.connect == undefined || config.connect === false
})

export default {
  messages,
  openeds,
  closeds
};
